package org.gene.service;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

/**
 * 这是一个Demo类，用于aop
 */
@Component(value="demo")
public class DemoImpl implements DemoInterface {

	private static Logger Log = Logger.getLogger(DemoImpl.class);
	
	@Override  
    public void cool() {  
		Log.debug("哇，楼主好帅！");   
    }  
    @Override  
    public void cool(String name) {  
    	Log.debug("哇，楼主"+name+"，你好帅啊！");  
    	try {
			Thread.sleep(50);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    }
	@Override
	public void cool(String name, int age) {
		Log.debug("name:"+name+",age:"+age);
	}  

}
